<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>作品列表</title>
<{include file="block/meta.tpl"}>
<link type="text/css" rel="stylesheet" href="<{$__HST_UI}>/css<{$_The.ScriptBase}>.css" />
</head>
<body>
<{include file="block/header.tpl"}>

<div class="content">
	<div><h3>类别目录</h3></div>
	<div>
<{section name=i loop=$rMainCtgrys}>
		<div><{$rMainCtgrys[i].rank}>.<a href="?category=<{$rMainCtgrys[i].id}>"><{$rMainCtgrys[i].title|escape:html}></a></div>
		<ul>
<{section name=j loop=$rMainCtgrys[i].SubCtgrys}>
			<li><{$rMainCtgrys[i].SubCtgrys[j].rank}>.<a href="?category=<{$rMainCtgrys[i].SubCtgrys[j].id}>"><{$rMainCtgrys[i].SubCtgrys[j].title|escape:html}></a></li>
<{/section}>
		</ul>
<{/section}>
	</div>
	<div><h1>作品列表</h1></div>
	<div><span>面包削：</span>
		<{if $rCtgry}><{html_breadcrumb from=$rCtgry.BreadCrumb}>
		<{else}>&lt; 顶级目录 &gt;<{/if}>
	</div>
	<div>
<{section name=i loop=$rWorks}>
	<ul>
		<li>缩略图：<a href="?action=edit&id=<{$rWorks[i].id}>"><img src="<{$rWorks[i].thumb|uWork_thumb:$rWorks[i].id:'50x50.jpg'}>" /></a></li>
		<li>标题：<a href="one.php?id=<{$rWorks[i].id}>"><{$rWorks[i].title|escape:html}></a></li>
		<li>作者：<a href="../user/one.php?id=<{$rWorks[i].owner_id}>"><{$rWorks[i].owner_nick|escape:html}></a></li>
		<li>价格：<{$rWorks[i].price|escape:html}></li>
		<li>添加时间：<{$rWorks[i].time_added|escape:html}></li>
		<li><a href="one.php?id=<{$rWorks[i].id}>">查看详情</a></li>
	</ul>
<{sectionelse}>
	<div>无记录</div>
<{/section}>
	</div>
	<div>
		<span>翻页条：</span>
<{html_pager max=$rPager.Max page=$rPager.Num
	link="<a href=\"?`$rPager.Bse`&`$rPager.Req`={X}\">{X}</a>"
	text="{X}"
}>
		<span>每页<{$rPager.Sze}>条</span>
	</div>
	<div class="clear"></div>
</div>

<{include file="block/footer.tpl"}>
</body>
</html>
